//Person.prototype -- 原型
//Person.prototype = {}

Person.prototype.name = '德雷克'
Person.prototype.say = function(){
    console.log('hhhhhhhhh');
}
function Person(){
//this.name = '启明'
}
//console.log(Person.name);  //Person

var person = new Person()
var person2 = new Person()
// console.log(person2.name);


//他定义了构造函数创造出来的对象的公共祖先
console.log(person);
person.say()